<div class="pageContent">
	<form method="post" action="jms/demand/<#if (demand.id)??>update<#else>save</#if>"
          class="pageForm required-validate" onsubmit="return validateCallback(this, navTabAjaxDone);">

        <input  type="hidden" name="demand.id"   value="${(demand.id)!}">
		<div class="pageFormContent" layoutH="56">
            <fieldset>
                <legend>需求信息</legend>

                <dl>
                    <dt>客户名称：</dt>
                    <dd>
                        <select name="demand.cusName" class="required combox">
                            <option value="">---请选择---</option>
                            <#list customerList as s>
                                <option value="${(s.name)!}" <#if (demand)?? && demand.cusName==s.name> selected="selected"</#if>>${(s.name)!}</option>
                            </#list>
                        </select>
                    </dd>
                </dl>
                <dl>
                    <dt>区县：</dt>
                    <dd>
                        <select name="demand.homeCounty" class="required combox">
                            <option value="">---请选择---</option>
                            <#list homeCountyList as s>
                                <option value="${(s.name)!}" <#if (demand.homeCounty)?? && demand.homeCounty==s.name>selected="selected"</#if>>${(s.name)!}</option>
                            </#list>
                        </select>

                    </dd>
                </dl>

                <dl>
                    <dt>需求批次：</dt>
                    <dd><input type="text" name="demand.demandMemo"  value="${(demand.demandMemo)!}"></dd>
                </dl>
                <dl>
                    <dt>需求站点名称：</dt>
                    <input type="text" name="demand.name"   value="${(demand.name)!}" oldValue="${(demand.name)!}"
                           class="required" remote="jms/demand/checkIsNotExist?name=${(demand.name)!}"  maxlength="30" /></dd>
                </dl>

                <dl>
                    <dt>场景划分：</dt>
                    <dd>
                        <select name="demand.scene"  class="required combox">
                            <option value="">---请选择---</option>
                            <option <#if (demand.scene)?? && demand.scene=='市区'> selected="selected"</#if> value="市区">市区</option>
                            <option <#if (demand.scene)?? && demand.scene=='城镇'> selected="selected"</#if> value="城镇">城镇</option>
                            <option <#if (demand.scene)?? && demand.scene=='农村'> selected="selected"</#if> value="农村">农村</option>

                        </select>
                    </dd>
                </dl>
                <dl>
                    <dt>交付时间要求：</dt>
                    <dd>
                        <input type="text" name="demand.submitDate" value="${(demand.submitDate)!}" class="date"  readonly="true"/>
                        <a class="inputDateButton" href="javascript:;">选择</a>
                    </dd>
                </dl>
                <dl>
                    <dt>经度：</dt>
                    <dd><input type="text" name="demand.longitude"  value="${(demand.longitude)!}" class="required number"></dd>
                </dl>
                <dl>
                    <dt>纬度：</dt>
                    <dd><input type="text" name="demand.latitude"  value="${(demand.latitude)!}" class="required number"></dd>
                </dl>

                <dl>
                    <dt>覆盖范围描述：</dt>
                    <dd><input type="text" name="demand.addr"  value="${(demand.addr)!}"></dd>
                </dl>
                <dl>
                    <dt>需求编号：</dt>
                    <dd><input type="text" name="demand.did"  value="${(demand.did)!}">  <span class="info">放空自动生成</span>
                    </dd>
                </dl>
                <dl>
                    <dt>CRM订单号：</dt>
                    <dd><input type="text" name="demand.crmid"  value="${(demand.crmid)!}"></dd>
                </dl>
                <dl class="nowrap">
                    <dt>需求说明：</dt>
                    <dd><textarea name="demand.memo" cols="82" rows="2">${(demand.memo)!}</textarea></dd>
                </dl>

            </fieldset>

            <fieldset>
                <legend>考核信息</legend>

                <dl>
                    <dt>是否任务：</dt>
                    <dd>
                        <select name="demand.isValid"  class="required combox">
                            <option value="">---请选择---</option>
                            <option <#if (demand.isValid)?? && demand.isValid=='是'> selected="selected"</#if> value="是">是</option>
                            <option <#if (demand.isValid)?? && demand.isValid=='否'> selected="selected"</#if> value="否">否</option>
                        </select>
                    </dd>
                </dl>

                <dl>
                    <dt>考核月份：</dt>
                    <dd>
                        <select name="demand.taskMonth"  class="combox">
                            <option value="">---请选择---</option>

                            <option <#if (demand.taskMonth)?? && demand.taskMonth==1> selected="selected"</#if> value="1">1</option>
                            <option <#if (demand.taskMonth)?? && demand.taskMonth==2> selected="selected"</#if> value="2">2</option>
                            <option <#if (demand.taskMonth)?? && demand.taskMonth==3> selected="selected"</#if> value="3">3</option>
                            <option <#if (demand.taskMonth)?? && demand.taskMonth==4> selected="selected"</#if> value="4">4</option>
                            <option <#if (demand.taskMonth)?? && demand.taskMonth==5> selected="selected"</#if> value="5">5</option>
                            <option <#if (demand.taskMonth)?? && demand.taskMonth==6> selected="selected"</#if> value="6">6</option>
                            <option <#if (demand.taskMonth)?? && demand.taskMonth==7> selected="selected"</#if> value="7">7</option>
                            <option <#if (demand.taskMonth)?? && demand.taskMonth==8> selected="selected"</#if> value="8">8</option>
                            <option <#if (demand.taskMonth)?? && demand.taskMonth==9> selected="selected"</#if> value="9">9</option>
                            <option <#if (demand.taskMonth)?? && demand.taskMonth==10> selected="selected"</#if> value="10">10</option>
                            <option <#if (demand.taskMonth)?? && demand.taskMonth==11> selected="selected"</#if> value="11">11</option>
                            <option <#if (demand.taskMonth)?? && demand.taskMonth==12> selected="selected"</#if> value="12">12</option>
                        </select>
                    </dd>
                </dl>

                <dl>
                    <dt>是否冲量：</dt>
                    <dd>
                        <select name="demand.isPlus"  class="combox">
                            <option value="">---请选择---</option>
                            <option <#if (demand.isPlus)?? && demand.isPlus=='是'> selected="selected"</#if> value="是">是</option>
                            <option <#if (demand.isPlus)?? && demand.isPlus=='否'> selected="selected"</#if> value="否">否</option>
                        </select>
                    </dd>
                </dl>
                <dl>
                    <dt>是否取消：</dt>
                    <dd>
                        <select name="demand.isCancel"  class="combox">
                            <option value="">---请选择---</option>
                            <option <#if (demand.isCancel)?? && demand.isCancel=='是'> selected="selected"</#if> value="是">是</option>
                            <option <#if (demand.isCancel)?? && demand.isCancel=='否'> selected="selected"</#if> value="否">否</option>
                        </select>
                        <span class="info">（统计用）</span>
                    </dd>
                </dl>


            </fieldset>
		</div>


		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">提交</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
			</ul>
		</div>


	</form>
</div>
